﻿<Window x:Class="TspDemo.CSharp.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:Local="clr-namespace:ClearLines.TspDemo.CSharp"
        Title="Bumblebee" ResizeMode="CanMinimize" Width="800" Height="600">
   <Window.DataContext>
      <Local:RouteViewModel/>
   </Window.DataContext>

   <DockPanel>
      <Border DockPanel.Dock="Left" 
              BorderThickness="2" Padding="5" Margin="5 0 0 0"
              BorderBrush="Gray" Background="DarkGray" 
              Width="560" Height="560">
         <Polygon Points="{Binding Points}" Stroke="White" StrokeThickness="2"/>        
      </Border>
      
      <StackPanel Orientation="Vertical" Margin="5">
         <Button Command="{Binding Run}" 
                 Content="{Binding ButtonLabel}" 
                 Height="40" FontSize="16"/>
         <StackPanel Orientation="Horizontal" Height="30">
            <Label Content="Cities" Height="25"/>
            <TextBox Text="{Binding CitiesCount}" Width="50" Height="25"/>
         </StackPanel>
         <TextBlock Text="{Binding Quality, StringFormat={}{0:0.00}}" FontSize="40" HorizontalAlignment="Right"/>
         <TextBlock Text="{Binding DiscoveryTime, StringFormat={}{0:T}}" Foreground="Gray"  HorizontalAlignment="Right"/>
      </StackPanel>



   </DockPanel>
</Window>
